# $Id: PKGBUILD 150343 2012-02-17 07:19:44Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=perl-net-dns-resolver-programmable
_realname=Net-DNS-Resolver-Programmable
pkgver=0.003
pkgrel=5
pkgdesc="A Net::DNS::Resolver descendant class for offline emulation of DNS"
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-net-dns' 'perl>=5.10.0')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/${_realname}-v${pkgver}.tar.gz)
md5sums=('8d44bf331d6115e7fb4ea21f6cf4b96b')

build() {
  cd ${srcdir}/${_realname}-v${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${srcdir}/${_realname}-v${pkgver}
  make install DESTDIR=${pkgdir} || return 1
}
